package cn.com.czpb.client.utils;

/**
 * Created by Administrator on 2017/9/4.
 */

public class TextUtils {
    public static String getLengthText(String msg, int length){
        if (msg.length()>length){
            return msg.substring(0,length)+"...";
        }else {
            return msg;
        }
    }
}
